Skip to content

chore: add interrupted tool result recovery hook to web-security#1

Merged
GangGreenTemperTatum merged 2 commits into
mainfrom
ads/web-security-interrupted-tool-result-hook-r2
Jun 15, 2026
Merged

chore: add interrupted tool result recovery hook to web-security#1
GangGreenTemperTatum merged 2 commits into
mainfrom
ads/web-security-interrupted-tool-result-hook-r2

Conversation

@GangGreenTemperTatum

Copy link
Copy Markdown
Contributor

Summary

  • add a capability-level hook for web-security that recovers when the model emits [Response interrupted by a tool call result.]
  • remember the last tool outcome and feed it back to the agent with a bounded retry budget
  • fix the web-security test suite so bbscope imports from the current repo layout and async marks only apply to async tests

Validation

  • python3 -m pytest capabilities/web-security/tests -q
  • pre-commit run --files capabilities/web-security/capability.yaml capabilities/web-security/hooks/interrupted_tool_result.py capabilities/web-security/tests/test_interrupted_tool_result_hook.py capabilities/web-security/tests/test_bbscope.py capabilities/web-security/tests/test_credence.py

@GangGreenTemperTatum GangGreenTemperTatum changed the title Add interrupted tool result recovery hook to web-security chore: add interrupted tool result recovery hook to web-security May 4, 2026
@GangGreenTemperTatum GangGreenTemperTatum force-pushed the ads/web-security-interrupted-tool-result-hook-r2 branch from 6dddd1b to c08572f Compare June 15, 2026 17:56
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@GangGreenTemperTatum GangGreenTemperTatum merged commit e9fdd55 into main Jun 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants